import request from '@/utils/request'

// 订单收款列表
export function feedbackList(query) {
  return request({
      url: '/admin/feedback/list',
      method: 'get',
      params: query
  });
}
//回复
export function reply(data) {
  return request({
    url: '/admin/feedback/reply',
    method: 'post',
    data: data
  })
}
//转投诉
export function complain(workNo) {
  return request({
    url: '/admin/feedback/complain/' + workNo,
    method: 'put',
  })
}
//投诉列表
export function tousuList(query) {
  return request({
      url: '/admin/tousu/list',
      method: 'get',
      params: query
  });
}
// 投诉——转退款
export function tousuRefund(data) {
  return request({
    url: '/admin/tousu/refund',
    method: 'put',
    data:data
  })
}
//投诉——回复
export function tousuReply(data) {
  return request({
    url: '/admin/tousu/reply',
    method: 'post',
    data: data
  })
}